package org.dromara.mall.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import org.dromara.common.tenant.core.TenantEntity;

import java.io.Serial;
import java.math.BigDecimal;
import java.util.List;

/**
 * 商品列表对象 mall_goods
 *
 * @author Lion Li
 * @date 2024-05-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("mall_goods")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class MallGoods extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 品牌ID
     */
    private Long brandId;

    /**
     * 商品分类
     */
    private Long cate1Id;
    private Long cate2Id;
    private Long cate3Id;

    /**
     * 商品名称
     */
    private String name;

    /**
     * 商品副标题
     */
    private String subName;

    /**
     * 商品编号
     */
    private String goodsNo;

    /**
     * 主图
     */
    private String imgUrl;
    private String ossId;
    private String specIds;
    /*价格*/
    private BigDecimal price;
    /*市场价格*/
    private BigDecimal oldPrice;

    /**
     * 销售量
     */
    private Integer sale;

    /**
     * 收藏量
     */
    private Integer collect;
    /*评论量*/
    private Integer comment;
    /*总库存*/
    private Integer stock;


    /**
     * 上架状态
     */
    private Integer status;

    /**
     * 审核状态
     */
    private Integer verify;

    /**
     * 拒绝原因
     */
    private String refuseInfo;

    /**
     * 运费模版 0默认
     */
    private Integer freightId;

    /**
     * 手机端详情
     */
    private String contentMobile;

    /**
     * 是否推荐商家首页
     */
    private Integer isRecommend;

    /**
     * 是否推荐主站首页
     */
    private Integer isMaster;

}
